]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 2/2] lib-storage: Remove MAILBOX_FLAG_AUTO_CREATE and MAILBOX_FLAG_AUTO_SUBSCRIBE
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 11 Jun 2026 17:20:40 +0000 (17:20 +0000)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commit01e642d12c557f1595f0cb497558c9e389818936
tree1e1ddc584620d8d7c02b4408611933ca7c47c734
parentb103d3992713f5b8d47d33cc70eac0696e7be546
[PATCH 2/2] lib-storage: Remove MAILBOX_FLAG_AUTO_CREATE and MAILBOX_FLAG_AUTO_SUBSCRIBE

These flags were set only by mail delivery (lib-lda) and Sieve fileinto
(Pigeonhole), both of which now create the target mailbox explicitly with
mailbox_create(). Nothing sets the flags anymore, so remove them and drop
the flag checks from mailbox_is_autocreated() and mailbox_is_autosubscribed().

As a result mailbox_is_autocreated() reflects only mailboxes that virtually
already exist (the user's INBOX and admin-configured "auto" mailboxes), so
the ACL plugin again enforces the CREATE right for delivery-autocreated
mailboxes in shared and public namespaces.

Gbp-Pq: Name 0002-lib-storage-Remove-MAILBOX_FLAG_AUTO_CREATE-and-MAIL.patch
src/lib-storage/mail-storage-lua.c
src/lib-storage/mail-storage.c
src/lib-storage/mail-storage.h